//
//  YearView.m
//  项目三
//
//  Created by rimi on 15/10/13.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "YearView.h"

@interface YearView ()

- (void)initializeUserInterface; /**< 初始化用户界面 */

@end

@implementation YearView

- (instancetype)initWithFrame:(CGRect)frame sureBlock:(void(^)(NSString * selection))sure {

    if (self = [super initWithFrame:frame sureBlock:sure]) {
        [self initializeUserInterface];
    }
    return self;
}
- (void)initializeUserInterface {

    [super initializeUserInterface];
    for (int i = 2013; i < 2100; i ++) {
        [self.dataSource addObject:[NSString stringWithFormat:@"%d",i]];
    }
}

@end
